import Event from "../Base/Event";

const { ccclass, property } = cc._decorator;
@ccclass
export default class GameView extends cc.Component {

        private event:Event = new Event()

        public on(name,func,target?){return this.event.on(name,func,target)}
        public once(name,func,target?){return this.event.once(name,func,target)}
        public emit(name,...args){return this.event.emit(name,...args)}
        public off(name,func){return this.event.off(name,func)}

}